<#import "../user_defined_function.ftl" as self_defined>
package ${cfg.package_name}.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import java.util.List;
import java.util.Date;
import java.math.BigDecimal;
import com.rt.easyjava.common.base.BaseV4Dto;

/**
 * ${table.comment!}
 * @author ${author}
 * @since ${date}
 */
@Data
@ToString
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor<#--@Builder-->
public class ${entity}Dto extends BaseV4Dto{
    private static final long serialVersionUID = 1L;

<#list table.fields as field>

<#if self_defined.isIgnProp(field.propertyName)==true>
    <#continue>
</#if>

<#if field.keyFlag>
    <#assign keyPropertyName="${field.propertyName}"/>
</#if>
<#if field.keyFlag>
    <#-- 主键 -->
    /**
     * 主键 : ${field.name}  ${field.comment!}
     */
    <#-- 普通字段 -->
    <#elseif !field.keyFlag>
    /**
     * ${field.name}: ${field.comment!}
     */
    </#if>
<#-- 乐观锁注解 -->
    <#if (versionFieldName!"") == field.name>
    @Version
    </#if>
<#-- 逻辑删除注解 -->
    <#if (logicDeleteFieldName!"") == field.name>
    @TableLogic
    </#if>
    <#if field.propertyType == "LocalDateTime">
    private Date ${field.propertyName};
    </#if>
    <#if field.propertyType != "LocalDateTime">
    private ${field.propertyType} ${field.propertyName};
    </#if>
</#list>


}
